package com.rz.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.rz.javaSpringBoot.modules.account.entity.User;
import com.rz.javaSpringBoot.modules.common.entity.Result;
import com.rz.javaSpringBoot.modules.common.entity.SearchBean;

import java.util.List;

/**
 *  User Service
 */
public interface UserService {
	
	User getUserByUserNameAndPassword(String userName, String password);
	
	Result<User> login(User user);

	void logout();
	
	Result<User> insertUser(User user);
	
	Result<User> updateUser(User user);
	
	User getUserById(int id);
	
	Result<Object> deleteUserById(int id);
	
	PageInfo<User> getUsersBySearchBean(SearchBean searchBean);
	
	User getUserByUserName(String userName);
	
	List<User> getUsersByKeyWord(String keyWord);
}
